﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style>
        td{
            width:200px;
            text-align:center;
        }
        th{
            text-align:center;
        }
    </style>
    <asp:Button runat="server" ID="btnAdd" Text="添加" OnClick="btnAdd_Click"/>
    <asp:GridView runat="server" ID="gv4" AutoGenerateColumns="false" OnRowCancelingEdit="gv4_RowCancelingEdit" OnRowDeleting="gv4_RowDeleting" OnRowEditing="gv4_RowEditing" OnRowUpdating="gv4_RowUpdating">
        <Columns>
            <asp:BoundField DataField="id" HeaderText="ID" ReadOnly="true"/>
            <asp:BoundField DataField="Username" HeaderText="用户名" />
            <asp:BoundField DataField="Password" HeaderText="密码" />
            <asp:BoundField DataField="Remarks" HeaderText="备注" />
            <asp:CommandField ShowCancelButton="true" ShowDeleteButton="true" ShowEditButton="true" HeaderText="高端操作" />
        </Columns>
    </asp:GridView>


</asp:Content>
